package com.erp.erp_servers.Inquiry;

import com.alibaba.fastjson.JSONObject;
import com.erp.erp_entitys.Inquiry.*;
import com.erp.erp_entitys.Inquiry.req.inquiryStatisticsReq;
import com.erp.erp_entitys.Inquiry.res.inquiryStatisticsRes;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface IInquiryService {
    int deleteByPrimaryKey(Integer id);

    int insert(InquiryEntity record);

    int insertSelective(InquiryEntity record);

    InquiryEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(InquiryEntity record);

    int updateByPrimaryKey(InquiryEntity record);

    PageInfo<InquiryEntity> selectInquiryList(InquiryVo iVo);

    List<InquiryEntity> selectByIdList(List<Integer> list);

    int updateBoxStatusBykey(InquiryVo iVo);

    int insertInfo(InquiryEntity record);

    int updateInquiryById(InquiryEntity record);

    int reInquiryById(InquiryEntity record);

    boolean isExist(String oddNumber);

    int getLatestOddNumber();

    /**
     * 询盘统计-分页
     * @param req
     * @return
     */
    PageInfo<inquiryStatisticsRes> inquiryStatisticsList(inquiryStatisticsReq req);

    /**
     * 询盘统计-导出
     * @param req
     * @return
     */
    JSONObject inquiryStatisticsExport(inquiryStatisticsReq req);
}